package at.com.vn.chess.service;

import java.util.ArrayList;

import org.apache.log4j.Logger;

import at.com.vn.chess.bean.PrivateChatRoomBean;
import at.com.vn.chess.entity.ChatUser;
import at.com.vn.chess.entity.ChessRow;
import at.com.vn.chess.entity.User;

public abstract class BaseService {
	
	final Logger logger;

	String inputStrXml = "";

	String outputStrXml = "";

	ArrayList<User> loginUserList = new ArrayList<User>();
	ArrayList<ChatUser> chatUserList = new ArrayList<ChatUser>();
	ArrayList<ChessRow> chessRowList = new ArrayList<ChessRow>();
	ArrayList<PrivateChatRoomBean> privateChatRoomBeanList = new ArrayList<PrivateChatRoomBean>();

	/**
	 * Thong tin va nhung ban co dang danh
	 */
	ArrayList<String> chessBoardInfoList = new ArrayList<String>();

	ArrayList<String> chessBoardHistoryList = new ArrayList<String>();

	public BaseService(String inputStrXml) {
		super();
		this.inputStrXml = inputStrXml;
		logger = Logger.getLogger( getClass() );		
	}

	public String getOutputStrXml() {
		return outputStrXml;
	}

	public void setArrayData(ArrayList<User> loginUserList,
			ArrayList<ChatUser> userList, ArrayList<ChessRow> chessRowList,
			ArrayList<PrivateChatRoomBean> privateChatRoomBeanList,
			ArrayList<String> chessBoardInfoList,
			ArrayList<String> chessBoardHistoryList) {
		this.loginUserList = loginUserList;
		this.chatUserList = userList;
		this.chessRowList = chessRowList;
		this.privateChatRoomBeanList = privateChatRoomBeanList;
		this.chessBoardInfoList = chessBoardInfoList;
		this.chessBoardHistoryList = chessBoardHistoryList;
	}

	public abstract void doService();
}